/********************************************************************
 * Author: DO HOANG HAI
 * Date of Creation: 21/Aug/2007
 * Last modification: 30/Aug/2007
 * 
 * Description: this class represent an user comment about an Item
 * 
 * Status: Optimized & Finished
 *******************************************************************/

using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;

namespace Pbdms.Common.DataObject
{
    /// <summary>
    /// Represent user comments about an item
    /// </summary>
    public class Comment
    {
        private String summary = "";
        private String pros = "";
        private String cons="";
        private double rating = 0.0; //default value
        private String id = "";
        private String reviewFile = "";

        
        private ArrayList tags= new ArrayList();
       
        #region public property

        /// <summary>
        /// get and set the summary of the item
        /// </summary>
        public String Summary
        {
            get { return summary; }
            set { summary = value; }
        }

        /// <summary>
        /// get and set Pros of the item
        /// </summary>
        public String Pros
        {
            get { return pros; }
            set { pros = value; }
        }
        /// <summary>
        /// get and set Cons of the item
        /// </summary>
        public String Cons
        {
            get { return cons; }
            set { cons = value; }
        }

        /// <summary>
        /// get and set the Rating of the item
        /// </summary>
        public double Rating
        {
            get { return rating; }
            set { rating = value; }
        }
        /// <summary>
        /// get and set the Review file of the item
        /// </summary>
        public String ReviewFile
        {
            get { return reviewFile; }
            set { reviewFile = value; }
        }
        /// <summary>
        /// get and set the id of the item
        /// </summary>
        public String Id
        {
            get { return id; }
            set { id = value; }
        }

        /// <summary>
        /// get and set the tags of the item
        /// </summary>
        public ArrayList Tags
        {
            get { return tags; }
            set { tags = value; }
        } 
        #endregion

        #region Constructors
        public Comment() { }
        public Comment(String id)
        {
            this.id = id;
        }
        /// <summary>
        /// create an instance
        /// </summary>
        /// <param name="id"></param>
        /// <param name="summary"></param>
        /// <param name="pros"></param>
        /// <param name="cons"></param>
        /// <param name="rating"></param>
        /// <param name="tags"></param>
        public Comment(String id, String summary, String pros, String cons, double rating, ArrayList tags)
        {
            this.id = id;
            this.summary = summary;
            this.pros = pros;
            this.cons = cons;
            this.rating = rating;
            this.tags = tags;
        }
        
        #endregion

        #region private methods
        
        #endregion

        #region public methods

        #endregion


    }
}


